<?php

Route::group(['middleware' => 'web', 'prefix' => 'wx', 'namespace' => 'Modules\Wx\Http\Controllers'], function()
{
    Route::get('/', 'WxController@index')->name('wx');
});
//wx_config-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'wx','namespace'=>"Modules\Wx\Http\Controllers"], 
function () {
    Route::resource('wx_config', 'WxConfigController')->middleware("permission:admin,resource");
});
 
//wechat-route
Route::group(['middleware' => ['web','auth:admin'],'prefix'=>'wx','namespace'=>"Modules\Wx\Http\\Controllers"],
function () {
    Route::resource('wechat', 'WechatController');
    Route::get('/wechat/push/{wechat}','WechatController@push');
});